<!DOCTYPE html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>后台管理 | {$com.abbreviation}</title>
	<link href="__APP____PUBLIC__/css/admin/style.css" rel="stylesheet" type="text/css" />
	<link href="__APP____PUBLIC__/css/validator.css" rel="stylesheet" type="text/css" />
	<link href="__APP____PUBLIC__/images/favicon.ico" type="image/ico" rel="shortcut icon">
	<script src="__APP____PUBLIC__/js/jquery-1.4.4.js" type="text/javascript" charset="UTF-8"></script>
	<script src="__APP____PUBLIC__/admin/js/formValidator-4.1.1.js" type="text/javascript" charset="UTF-8"></script>
	<script src="__APP____PUBLIC__/admin/js/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
	<script type="text/javascript" src="__APP____PUBLIC__/admin/js/common.js"></script>
	<!--在线编辑器引用-->
	<script type="text/javascript" src="__APP____PUBLIC__/js/ckeditor/ckeditor.js"></script>
	<!--在线编辑器引用-->
	
	<script>
	$(document).ready(function(){
		$.formValidator.initConfig({formID:"form1",autoTip:true,tidyMode:true,onError:function(msg){}});
		
	    $("#title").formValidator({onShow:"请输入标题",onFocus:"至少1个字符",onCorrect:"输入正确"}).inputValidator({min:2,max:200,onError:"输入不合法，请确认"});
		$("#content").formValidator({onShow:"请输入正文内容",onFocus:"至少10个字符",onCorrect:"输入正确"}).inputValidator({min:8,max:200,onError:"输入不合法，请确认"});
	});
	</script>
	
</head>

<body>
	
		<include file="./Tpl/default/Admin/nav.html" />
		
		<div id="wrapper">
			<div id="nav_trail"><a href="__APP__/Admin/">管理首页</a></div>
			<div id="content">
			
				<!-- 左边菜单 -->
				<include file="./Tpl/default/Admin/left_menu.html" />
				<!-- 左边菜单 -->
				
				<script>
					menusel('m_news');
				</script>
	
	
				<div class="right_area">
					<div class="cbar">
			            
			              <ul>
			                <li ><a href="index">新闻列表</a></li>
			    			<li class="cbar-tag-sel">增加新闻</li>
			              </ul>
			         </div><!-- cbar end -->
			         
			         <div class="cbox">
          
            <div class="ydbar">
      			<div class="info-title">增加新闻</div>
    		</div>	
       		
       		<form id="form1" name="form1" method="post" action="__URL__/insert" enctype="multipart/form-data">
		         <input type="hidden" name="state" value="1"/>
		    <table cellspacing="0" cellpadding="0" border="0" class="table-f">
		      <tbody>
		      
		      <tr>
		        <td align="right" width="15%" class="formtdl">标题：</td>
		        <td align="left" colspan="2"><input type="text" id="title" size="90" name="title"></td>
		        <td align="left" width="35%"><div id="titleTip" class="onShow">请输入标题</div></td>
		      </tr>   
		      
		     
		    </tbody></table>
		    
		    <div class="ydbar">
		      <div class="content-title">新闻内容</div>
		    </div>
		    <table width="100%" cellspacing="0" cellpadding="0" border="0">
		      <tbody><tr>
		        <td><textarea class="ckeditor" name="content" cols="50" rows="10" id="content" ></textarea>
		        <div id="contentTip" class="onShow tips" style="width:200px;">请输入房源介绍</div></td>
		      </tr>
		   		     
		    </tbody></table>
		    
		    <div class="ydbar">
		      <div class="content-title">新闻图片</div>
		    </div>
		    <table width="100%" cellspacing="0" cellpadding="0" border="0">
		      <tbody>
		      	<tr>
		        	<td>
		        		<input type="button" onclick="addFileUpload();" value="添加图片" />
        <br />			<span id="files">
		        			<div id="fileDiv0">图片名称&nbsp;<input type="text" name="fileName[]">&nbsp;<input type="file" name="file[]"><a href="javascript:void(delFile('fileDiv0'));">删除</a></a><br></div>
		        		</span>
		        		</td>
		      	</tr>

		     
		    </tbody></table>
		    
    
		    <table width="100%" cellspacing="0" cellpadding="0" border="0">
		      <tbody><tr>
		          <td align="center">
		            <input type="submit" value="提交" id="button" class="inp-yd" name="button">
		            
		        </td></tr>
		    </tbody></table>
		  </form>
             
          </div><!-- cbox end -->
            
			            
			        </div><!-- right_area end -->
				</div>
				
				<div class="clear"></div>
			</div> <!-- content end-->
			<div id="footer"></div>
   		</div><!-- wrapper end-->
</body>
</html>